import { _createApp } from './app';
const { app, router, store } = _createApp();

const win: any = window;
if (win.__INITIAL_STATE__) {
  // 初始化vuex
  store.replaceState(win.__INITIAL_STATE__);
}

(async (router, app) => {
  await router.isReady();
  app.mount('#app', true);
})(router, app);
